package org.dalmatian.app.system.JobExecutor;



import com.aizuda.snailjob.client.job.core.annotation.JobExecutor;
import com.aizuda.snailjob.client.job.core.dto.JobArgs;
import com.aizuda.snailjob.client.model.ExecuteResult;

import com.aizuda.snailjob.common.core.util.JsonUtil;
import com.aizuda.snailjob.common.log.SnailJobLog;
import lombok.RequiredArgsConstructor;
import org.noear.solon.annotation.Component;

/**
 * h5首页预热定时任务
 */
@Component
@RequiredArgsConstructor
public class DemoteJob {




    /**
     * 首页凌晨两点预热
     *
     * @param jobArgs
     * @return
     */
    @JobExecutor(name = "test")
    public ExecuteResult test3(JobArgs jobArgs) {
        System.out.println("123123");
        SnailJobLog.LOCAL.info("测试本地日志 ", JsonUtil.toJsonString(jobArgs));
        SnailJobLog.REMOTE.info("测试远程日志 ", JsonUtil.toJsonString(jobArgs));
        return ExecuteResult.success("成功！");
    }








}
